package com.ywf.corebase.web.sys.controller;/**
 * TODO
 *
 * @Author YWF
 * @Date 2021-03-23 16:50
 */

import com.ywf.corebase.framework.annotation.NotCheckParam;
import com.ywf.corebase.framework.annotation.PassToken;
import com.ywf.corebase.framework.annotation.ResponseResult;
import com.ywf.corebase.web.sys.entity.LoginUser;
import com.ywf.corebase.web.sys.service.LoginUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.management.Query;
import java.util.Map;

/**
 * TODO
 * @Author YWF
 * @Date 2021-03-23 16:50
 */
@RestController
@ResponseResult
public class LoginUserController {

    @Autowired
    private LoginUserService loginUserService;

    @PassToken
    @NotCheckParam
    @GetMapping(value = "/getUser")
    public LoginUser login(@RequestParam Map<String, Object> params){
        return loginUserService.getUser(params);
    }
}
